package com.incar.chuxing.bean;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Michael Pi on 2016/11/4.
 */
public class LoginBean {

    /**
     * status : 200
     * message : 通用成功
     * debug : null
     * attachment : {"userModel":{"id":923268,"name":"皮游庆","picture":92326820403482,"status":20,"isEnterprise":2,"token":"Px7_iZEE0Ri_GYyS-1539253601709","phoneNum":"18600662134","identityStatus":13,"licenseStatus":13,"numerical":null,"carbonEmission":null,"isNewUser":0,"expireTime":null,"openid":"74615299212005178e1c"},"x-incar-token":"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiI5MjMyNjgiLCJ0b2tlbiI6IlB4N19pWkVFMFJpX0dZeVMtMTUzOTI1MzYwMTcwOSIsImlzcyI6InVzZXItbG9naW4iLCJhdWQiOiIwOThmNmJjZDQ2MjFkMzczY2FkZTRlODMyNjI3YjRmNiIsImV4cCI6MTUzOTI1MzYwMSwibmJmIjoxNTM2NjYxNjAxfQ.n7K67eJExuJaY-DbZSmKYAXx395a8mKRprRVxMTW1-4"}
     * msg_code : 1003200
     */

    private int status;
    private String message;
    private Object debug;
    private AttachmentBean attachment;
    private String msg_code;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getDebug() {
        return debug;
    }

    public void setDebug(Object debug) {
        this.debug = debug;
    }

    public AttachmentBean getAttachment() {
        return attachment;
    }

    public void setAttachment(AttachmentBean attachment) {
        this.attachment = attachment;
    }

    public String getMsg_code() {
        return msg_code;
    }

    public void setMsg_code(String msg_code) {
        this.msg_code = msg_code;
    }

    public static class AttachmentBean {
        /**
         * userModel : {"id":923268,"name":"皮游庆","picture":92326820403482,"status":20,"isEnterprise":2,"token":"Px7_iZEE0Ri_GYyS-1539253601709","phoneNum":"18600662134","identityStatus":13,"licenseStatus":13,"numerical":null,"carbonEmission":null,"isNewUser":0,"expireTime":null,"openid":"74615299212005178e1c"}
         * x-incar-token : eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiI5MjMyNjgiLCJ0b2tlbiI6IlB4N19pWkVFMFJpX0dZeVMtMTUzOTI1MzYwMTcwOSIsImlzcyI6InVzZXItbG9naW4iLCJhdWQiOiIwOThmNmJjZDQ2MjFkMzczY2FkZTRlODMyNjI3YjRmNiIsImV4cCI6MTUzOTI1MzYwMSwibmJmIjoxNTM2NjYxNjAxfQ.n7K67eJExuJaY-DbZSmKYAXx395a8mKRprRVxMTW1-4
         */

        private UserModelBean userModel;
        @SerializedName("x-incar-token")
        private String xincartoken;

        public UserModelBean getUserModel() {
            return userModel;
        }

        public void setUserModel(UserModelBean userModel) {
            this.userModel = userModel;
        }

        public String getXincartoken() {
            return xincartoken;
        }

        public void setXincartoken(String xincartoken) {
            this.xincartoken = xincartoken;
        }

        public static class UserModelBean {
            /**
             * id : 923268
             * name : 皮游庆
             * picture : 92326820403482
             * status : 20
             * isEnterprise : 2
             * token : Px7_iZEE0Ri_GYyS-1539253601709
             * phoneNum : 18600662134
             * identityStatus : 13
             * licenseStatus : 13
             * numerical : null
             * carbonEmission : null
             * isNewUser : 0
             * expireTime : null
             * openid : 74615299212005178e1c
             */

            private String id;
            private String name;
            private String picture;
            private int status;
            private int isEnterprise;
            private String token;
            private String phoneNum;
            private int identityStatus;
            private int licenseStatus;
            private int isNewUser;
            private String openid;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPicture() {
                return picture;
            }

            public void setPicture(String picture) {
                this.picture = picture;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getIsEnterprise() {
                return isEnterprise;
            }

            public void setIsEnterprise(int isEnterprise) {
                this.isEnterprise = isEnterprise;
            }

            public String getToken() {
                return token;
            }

            public void setToken(String token) {
                this.token = token;
            }

            public String getPhoneNum() {
                return phoneNum;
            }

            public void setPhoneNum(String phoneNum) {
                this.phoneNum = phoneNum;
            }

            public int getIdentityStatus() {
                return identityStatus;
            }

            public void setIdentityStatus(int identityStatus) {
                this.identityStatus = identityStatus;
            }

            public int getLicenseStatus() {
                return licenseStatus;
            }

            public void setLicenseStatus(int licenseStatus) {
                this.licenseStatus = licenseStatus;
            }

            public int getIsNewUser() {
                return isNewUser;
            }

            public void setIsNewUser(int isNewUser) {
                this.isNewUser = isNewUser;
            }


            public String getOpenid() {
                return openid;
            }

            public void setOpenid(String openid) {
                this.openid = openid;
            }
        }
    }
}
